<li class="dropdown active" >
    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
        项目{% if request.tracer.project %}:{{request.tracer.project.name}}{% endif %}
        <span class="caret"></span>
    </a>
    <ul class="dropdown-menu">
        {% for row in my %}
            <li><a href="{% url 'web:dashboard' project_id=row.id %}">{{row.name}}</a></li>
        {% endfor %}
        {% if join %}
            <li role="separator" class="divider"></li>
            {% for row in join %}
                <li><a href="#'web:dashboard' project_id=row.id">{{row.project.name}}</a></li>
            {% endfor %}
        {% endif %}
    </ul>
</li>